home *** CD-ROM | disk | FTP | other *** search
/ Aminet 8 / Aminet 8 (1995)(GTI - Schatztruhe)[!][Oct 1995].iso / Aminet / dev / gcc / gcc270_src.lha / gcc-2.7.0-amiga / config / i386 / seq-sysv3.h < prev    next >
C/C++ Source or Header  |  1994-09-10  |  2KB  |  57 lines

  1. /* Sequent DYNIX/ptx 1.x (SVr3) */
  2.  
  3. #include "i386/sysv3.h"
  4.  
  5. /* Sequent Symmetry SVr3 doesn't have crtn.o; crt1.o doesn't work
  6.    but crt0.o does.  */
  7.  
  8. #undef STARTFILE_SPEC
  9. #define STARTFILE_SPEC  \
  10. "%{pg:gcrt0.o%s}\
  11.  %{!pg:%{posix:%{p:mcrtp0.o%s}%{!p:crtp0.o%s}}\
  12.        %{!posix:%{p:mcrt0.o%s}%{!p:crt0.o%s}}} crtbegin.o%s\
  13.  %{p:-L/usr/lib/libp}%{pg:-L/usr/lib/libp}"
  14.  
  15. #undef LIB_SPEC
  16. #define LIB_SPEC \
  17. "%{posix:-lcposix}\
  18.  %{shlib:-lc_s}\
  19.  %{fshared-data:-lpps -lseq} -lc crtend.o%s"
  20.  
  21. #undef CPP_SPEC
  22. #define CPP_SPEC "%{posix:-D_POSIX_SOURCE} -D_SEQUENT_=1"
  23.  
  24. /* Although the .init section is used, it is not automatically invoked.
  25.    This because the _start() function in /lib/crt0.o never calls anything
  26.    from the .init section */
  27. #define INVOKE__main
  28.  
  29. /* Assembler pseudo-op for initialized shared variables (.shdata). */
  30. #undef  SHARED_SECTION_ASM_OP
  31. #define SHARED_SECTION_ASM_OP ".section .shdata, \"ws\""
  32.  
  33. /* Assembler pseudo-op for uninitialized shared global variables (.shbss). */
  34. #undef  ASM_OUTPUT_SHARED_COMMON
  35. #define ASM_OUTPUT_SHARED_COMMON(FILE, NAME, SIZE, ROUNDED) \
  36. ( fputs(".comm ", (FILE)),            \
  37.   assemble_name((FILE), (NAME)),        \
  38.    fprintf((FILE), ",%u,-3\n", (SIZE)))
  39.  
  40. /* Assembler pseudo-op for uninitialized shared local variables (.shbss). */
  41. #undef  SHARED_BSS_SECTION_ASM_OP
  42. #define SHARED_BSS_SECTION_ASM_OP ".section .shbss, \"bs\""
  43. #undef  BSS_SECTION_FUNCTION
  44. #define BSS_SECTION_FUNCTION                    \
  45. void                                \
  46. bss_section ()                            \
  47. {                                \
  48.   if (in_section != in_bss)                    \
  49.     {                                \
  50.       if (flag_shared_data)                                     \
  51.         fprintf (asm_out_file, "%s\n", SHARED_BSS_SECTION_ASM_OP);    \
  52.       else                            \
  53.         fprintf (asm_out_file, "%s\n", BSS_SECTION_ASM_OP);    \
  54.       in_section = in_bss;                    \
  55.     }                                \
  56. }
  57.